import {Routes} from '@angular/router';
import {PageNotFoundComponent} from './shared/components';
import {LayoutComponent} from './page/system/layout/layout.component';
import {ExampleComponent} from './page/system/example/example.component';
import {OtherComponent} from './page/system/example/other/other.component';
import {UserComponent} from './page/system/user/user.component';
import {DictionaryComponent} from './page/system/dictionary/dictionary.component';
import {ProjectComponent} from './page/system/project/project.component';
import {LoginComponent} from './page/system/login/login.component';
import {MonitorComponent} from './page/system/monitor/monitor.component';
import {LogComponent} from './page/system/monitor/log/log.component';
import {UserLevelComponent} from './page/system/userlevel/user-level-component';
import {AreaComponent} from './page/system/area/area-component';
import {UamHomeComponent} from './page/business/uam/home/uam.home.component';
import {UamAssistComponent} from './page/business/uam/assist/uam.assist.component';
import {CaseOtherComponent} from "./page/business/other/case.other.component";


export const rootRoutes: Routes = [
  {path: '', redirectTo: 'login', pathMatch: 'full'},
  {path: 'login', component: LoginComponent},
  {path: 'casein', component: OtherComponent},
  {
    path: 'star',
    component: LayoutComponent,
    children: [{
      path: 'example',
      component: ExampleComponent
    }, {
      path: 'other',
      component: OtherComponent
    }, {
      path: 'user',
      component: UserComponent
    }, {
      path: 'userlevel',
      component: UserLevelComponent
    }, {
      path: 'menu',
      component: ProjectComponent
    }, {
      path: 'area',
      component: AreaComponent
    }, {
      path: 'dictionary',
      component: DictionaryComponent
    }, {
      path: 'monitor',
      component: MonitorComponent
    }, {
      path: 'log',
      component: LogComponent
    },
      // stk
      {
        path: 'stk',
        children: [
          {
            path: 'home',
            component: UamHomeComponent
          }, {
            path: 'assistant',
            component: CaseOtherComponent
          }, {
            path: 'application',
            component: UamAssistComponent
          }
        ]
      }
    ]
  },

  {path: '**', component: PageNotFoundComponent},
];




